﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2013/6/6 星期四 23:37:12
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Framework.DB;
using Sector7.Medical.EntityType;
using Sector7.Medical.Enums;

namespace Sector7.Medical.DAO
{
    /// <summary>
    /// 药品信息数据访问接口
    /// </summary>
    public interface IDrugDAO : IDAOBase<M7_Drug>
    {
        /// <summary>
        /// 根据种类特性查询药品列表
        /// </summary>
        /// <param name="natureTypeId"></param>
        /// <param name="properties"></param>
        /// <returns></returns>
        List<M7_Drug> ReadAll(int natureTypeId, DrugPropertyType properties);

        /// <summary>
        /// 根据关键字和药品包含属性类型查询药品列表
        /// </summary>
        /// <param name="keywords"></param>
        /// <param name="properties"></param>
        /// <returns></returns>
        List<M7_Drug> ReadAll(string keywords, DrugPropertyType properties);

        /// <summary>
        /// 根据关键字查询包含价格的药品列表
        /// </summary>
        /// <param name="keywords"></param>
        /// <returns></returns>
        List<M7_Drug> ReadDrugsWithPrice(string keywords);

        /// <summary>
        /// 获取记录条数
        /// </summary>
        /// <param name="drugName">药品名称</param>
        /// <returns></returns>
        int Count(string drugName);
    }
}
